<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<link href='../../dist/fullcalendar.css' rel='stylesheet' />
<link href='../../dist/fullcalendar.print.css' rel='stylesheet' media='print' />
<script src='../../node_modules/jquery/dist/jquery.js'></script>
<script src='../../node_modules/moment/moment.js'></script>
<script src='../../dist/fullcalendar.js'></script>
<script>

  $(document).ready(function() {

    $('#calendar').fullCalendar({
      headerToolbar: {
        left: 'prev,next today',
        center: 'title',
        right: 'month,week,dayGridWeek,day,dayGridDay'
      },
      initialView: 'week',
      initialDate: '2013-08-01',
      scrollTime: '00:00',
      editable: true,
      events: [
        {
          title: 'All Day Event',
          start: '2013-08-01'
        }
      ],
      eventDrop: function(event, delta, revertFunc) {
        if (!confirm('Move event?')) {
          revertFunc();
        }
        else {
          alert(
            'delta (days/hours/minutes) is ' +
            Math.floor(delta.asDays()) + '/' +
            delta.hours() + '/' +
            delta.minutes()
          );
          alert('allDay is ' + event.allDay);
        }
      }
    });

  });

</script>
<style>

  body {
    margin-top: 40px;
    text-align: center;
    font-size: 13px;
    font-family: "Lucida Grande",Helvetica,Arial,Verdana,sans-serif;
  }

  #calendar {
    width: 900px;
    margin: 0 auto;
  }

</style>
</head>
<body>
<div id='calendar'></div>
</body>
</html>
